/*
 * 
 * 
 * 
 */
package com.hboxs.asl.service.impl;

import com.hboxs.asl.dao.DeliveryCenterDao;
import com.hboxs.asl.entity.DeliveryCenter;
import com.hboxs.asl.service.DeliveryCenterService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Service - 广告
 */
@Service("deliveryCenterServiceImpl")
public class DeliveryCenterServiceImpl extends BaseServiceImpl<DeliveryCenter, Long> implements DeliveryCenterService {

    @Resource(name = "deliveryCenterDaoImpl")
    private DeliveryCenterDao deliveryCenterDao;

    @Resource(name = "deliveryCenterDaoImpl")
    public void setBaseDao(DeliveryCenterDao DeliveryCenterDao) {
        super.setBaseDao(DeliveryCenterDao);
    }

    @Transactional(readOnly = true)
    public DeliveryCenter findDefault() {
        return deliveryCenterDao.findDefault();
    }

}